/*
 * GET home page.
 */

var app = global.app;
var rootPath = app.rootPath;
var fs = require('fs');

var path = rootPath + '/routes/';
//noinspection JSUnresolvedFunction
var models = fs.readdirSync(path);
models.forEach(function (item) {
    if (item == 'index.js') {
        return;
    }
    require(path + item);
});
console.log('routes加载完毕.');